package com.ruoyi.goodscart.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 goods_cart
 *
 * @author qingyang
 * @date 2025-03-03
 */
public class GoodsCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车id */
    @Excel(name = "购物车id")
    private Long cartId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long addgoodsQuantity;

    public void setCartId(Long cartId)
    {
        this.cartId = cartId;
    }

    public Long getCartId()
    {
        return cartId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setAddgoodsQuantity(Long addgoodsQuantity)
    {
        this.addgoodsQuantity = addgoodsQuantity;
    }

    public Long getAddgoodsQuantity()
    {
        return addgoodsQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("cartId", getCartId())
                .append("userId", getUserId())
                .append("goodsId", getGoodsId())
                .append("addgoodsQuantity", getAddgoodsQuantity())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
